package com.clb.studyproject.ui

import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.clb.studyproject.R
import com.clb.studyproject.weights.SignatureView

class HandwrittenSignatureActivity:AppCompatActivity(R.layout.activity_handwritten_signature) {

    private val TAG = javaClass.name
    private lateinit var signatureView: SignatureView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        signatureView = findViewById<SignatureView>(R.id.signature_view)
    }

    fun getBitmap(view: View) {
        val bitmap = signatureView.getBitmap()
        Log.d(TAG, "onCreate: $bitmap")
    }
}
